<%@ page contentType="text/html;charset=UTF-8"%>
<jsp:directive.include file="/WEB-INF/view/jsp/admin/includes/top.jsp" />
<h3>
	UCenter 统计信息
</h3>
<ul class="memlist fixwidth">
	<li>
		<em> <a href="${ctx}/admin/application.do">应用总数</a>: </em>${applicationCount}
	</li>
	<li>
		<em> <a href="${ctx}/admin/user.do">用户总数</a>: </em>${userCount}
	</li>
</ul>

<h3>
	系统信息
</h3>
<ul class="memlist fixwidth">
	<li>
		<em>UCenter版本:</em>
		<%=com.google.code.ucenter.UcenterVersion.getVersion()%></li>
	<li>
		<em>操作系统:</em> ${sysInfo['os.name']}
		${sysInfo['os.arch']}&nbsp;${sysInfo['os.version']}
	</li>
	<li>
		<em>数据库:</em>
		Mongodb&nbsp;${mongoInfo.version}&nbsp;&nbsp;IP:${mongoInfo.host}:${mongoInfo.port}&nbsp;&nbsp;DB:${mongoInfo.databaseName}
	</li>
	<li>
		<em>JVM:</em>${sysInfo['java.runtime.name']}&nbsp;${sysInfo['java.runtime.version']}
		,&nbsp;${sysInfo['java.vm.name']},&nbsp;${sysInfo['java.vm.vendor']}
	</li>
	<li>
		<c:set var="memUsed"
			value="${(totalMemory - freeMemory) * 100 / maxMemory}" />
		<em>内存:</em>
		<img src="${ctx}/images/green.gif"
			width="${freeMemory / (totalMemory) * 400}" height="14" /><img src="${ctx}/images/red.gif"
			width="${(totalMemory - freeMemory) / totalMemory * 400}" height="14" />
		<fmt:formatNumber value="${memUsed}" pattern="##.#" />
		%
		<a href="${ctx}/admin/index!forceGC.do">Force Garbage Collection</a>
		<br>
		<div style="padding-left: 120px">
			Free:${freeMemory} MB Total:${totalMemory} MB Max:${maxMemory} MB
		</div>
	</li>
	<li>
		<em>处理器:</em> ${availableProcessors}
	</li>
</ul>
<jsp:directive.include
	file="/WEB-INF/view/jsp/admin/includes/bottom.jsp" />